package org.larkdoc.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 
 * 读取配置文件类
 * 
 * @author  zhangpeijun
 * @version  [v1.0.1, 2017年3月20日]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
@Configuration
@ConfigurationProperties
public class ReadConfig {
    
    @Value("${pub_salt}")
    private String pubSalt;
    
    private String uploadPath;
    
    public String getPubSalt() {
        return pubSalt;
    }
    
    public void setPubSalt(String pubSalt) {
        this.pubSalt = pubSalt;
    }
    
    /**
     * @return 返回 uploadPath
     */
    public String getUploadPath() {
        return uploadPath;
    }
    
    /**
     * @param 对uploadPath进行赋值
     */
    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }
    
}
